<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

//Route::get('/', function () {
//    return view('welcome');
//});
Route::get('/','IndexController@index')->name ('home');
Route::get('/lists','IndexController@lists');
Route::get('/register','RegisterController@register')->name ('zhuce');

Route::post('/reg','RegisterController@store')->name ('reg');
Route::resource ('user','UserController');
Route::get('/login','LoginController@login')->name('login');
Route::post ('/login','LoginController@store')->name('login');
Route::get('/loginOut','LoginController@logout')->name('logout');
Route::get ('/member','UserController@index')->name('member');
Route::get('/active/{token}','RegisterController@active')->name('active');
Route::get('/writeemail','ForgetPassword@writeEmail')->name('email');
Route::post('/checkEmail','ForgetPassword@check')->name('check');
Route::get('/reset/{email}/{token}','ForgetPassword@resetView')->name('resetview');
Route::post ('/reset','ForgetPassword@reset')->name('reset');
Route::resource ('blog','BlogController');
